package com.newtouch.cq.base.starter.business.model.vo;

import com.newtouch.cq.base.starter.business.entity.SysMenu;
import io.swagger.annotations.ApiModel;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

@SuppressWarnings("serial")
@Accessors(chain = true)
@Getter
@Setter
@ApiModel("菜单详情")
public class MenuVO extends SysMenu {

	@Override
	public boolean equals(Object obj) {
		if (obj instanceof MenuVO) {
			long targetMenuId = ((MenuVO) obj).getId();
			return id == targetMenuId;
		}
		return super.equals(obj);
	}

}
